package com.cdd.user.service;

import com.cdd.user.vo.UserVo;
import com.common.entity.Role;
import com.common.entity.User;
import com.common.untils.CommonResult;

import java.util.Map;

/**
 * TODO
 *
 * @author lenovo
 * @version 1.0
 * @since 2022-09-03  18:48:51
 */
public interface UserService {
    //查询全部
    CommonResult userAll(Integer currentPage, Integer pageSize, UserVo userVo);
    //删除员工
    CommonResult deleteUserById(String userId);

    CommonResult updateUserPassword(Map updatePasswordDate, String token);
    //添加员工
    CommonResult addUserByUser(User user);
    //修改状态
    CommonResult updateUserState(String userId, Integer state);
    //修改员工
    CommonResult updateUser(User user);
    //设置角色
    CommonResult findRoleByUser(String userId);
    //分页查询
    CommonResult findRoleByRoleName(Integer roleCurrentPage, Integer rolePageSize, Role role);
}
